﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="volva.Models" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% 
        Message message = ViewData["message"] as Message;

        string fromUsername = message.WebUserFrom.username;
        string link = "Profile/" + message.WebUserFrom.id;
        %>

    <h2><% Response.Write(message.subject); %> - <!-- %= Html.ActionLink("Svara póst","WriteMessage/" + message.WebUserFrom.id) % --></h2>
    <h3>From: <%= Html.ActionLink(fromUsername, link) %></h3>
    
    <p> <% Response.Write(message.body); %></p>

</asp:Content>
